package com.zychao.smex.po;

public class CartItem {

	private Book book;
	
	
	@SuppressWarnings("unused")
	private double price;
	private int count;

	public Book getBook() {
		return book;
	}

	public void setBook(Book book) {
		this.book = book;
	}

	public double getPrice() {
		return book.getPrice() * count;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

}
